package com.generalbackend.role.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
* ClassName: Role
* @Description 角色表实体类
* @author tim.xie
* @date 2021-12-16 10:51
*/

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_role")
public class Role  {
	/**
	 * 
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;
	/**
	 * 角色名
	 */
    @TableField("name")
    private String name;
	/**
	 * 角色描述
	 */
    @TableField("description")
    private String description;
	/**
	 * 角色标签
	 */
    @TableField("tags")
    private String tags;
	/**
	 * 创建人
	 */
    @TableField("create_user")
    private Long createUser;
	/**
	 * 创建时间
	 */
    @TableField("create_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
	/**
	 * 修改人
	 */
    @TableField("update_user")
    private Long updateUser;
	/**
	 * 修改时间
	 */
    @TableField("update_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;


}